FROM openjdk:11
ENV APP_VERSION 0.0.1-SNAPSHOT
RUN mkdir /app
COPY target/demo-$APP_VERSION.jar /app/app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app/app.jar", "--spring.profiles.active=prod"]
EXPOSE 8080